import request from "@/utils/request";

//新增地址接口
export function addAddress(data) {
	return request({
		url: "/addAddress",
		method: "POST",
		data: data
	})
}

//编辑地址接口
export function editAddress(data) {
	return request({
		url: "/editAddress",
		method: "POST",
		data: data
	})
}

//删除地址接口
export function deleteAddress(data) {
	return request({
		url: "/deleteAddress",
		method: "POST",
		data: data
	})
}

// 根据地址aid查询地址接口
export function findAddressByAid(data) {
	return request({
		url: "/findAddressByAid",
		method: "GET",
		params: data
	})
}
